/**
 * Point2D
 *
 * Released under Apache License, Version 2.0.
 */

package bsp.helper.objects;

/**
 * Point2D generic class.
 *  
 * @param <T> Type to be use to store x & y value for the point
 */
public class Point2D<T>
{
	public T x, y;
	
	/**
	 * Default constructor.
	 */
	public Point2D()
	{
		/* Empty by design */
		/*
		 * As we do not know the data type of the variables, we cannot initialize them.
		 * Accessing uninitialized class will have unpredictable consequences
		 */
	}
	
	/**
	 * Constructor.
	 * 
	 * @param x
	 * @param y
	 */
	public Point2D(T tx, T ty)
	{
		x = tx;
		y = ty;
	}
}

/* end */
